package HomeworkUse;

public class User {
    String Id;          //账号
    String Key;         //密码
    String Email;       //邮箱

    //根据是否填写邮箱进行信息展示
    public void say(){
        if(Email != null && Email.isEmpty()){
            System.out.println("您的账号为"+Id+",密码为"+Key);
        }
        else {
            System.out.println("您的账号为"+Id+",密码为"+Key+"，邮箱为"+Email);
        }
    }
}
